Add needed header files that are buried/nested in x86
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 14 Sep 2005 21:33:52 +0000 (15:33 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 14 Sep 2005 21:33:52 +0000 (15:33 -0600)
linux-2.6-xen-sparse/drivers/xen/blkfront/block.h
linux-2.6-xen-sparse/drivers/xen/console/console.c
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c

index 8a2acd604661951f6ffef277d8d75d6d12f69196..5d1e38564e1fc05d79d31daca54ea20a2e29f978 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/devfs_fs_kernel.h>
 #include <asm-xen/hypervisor.h>
 #include <asm-xen/xenbus.h>
+#include <asm-xen/gnttab.h>
 #include <asm-xen/xen-public/xen.h>
 #include <asm-xen/xen-public/io/blkif.h>
 #include <asm-xen/xen-public/io/ring.h>
index 18ed52c038e9af11712edfdab074b23c2385b915..087891ee4ddbc75494ba7f91897fa9983f86c45f 100644 (file)
@@ -49,6 +49,7 @@
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/uaccess.h>
+#include <asm-xen/xen-public/xen.h>
 #include <asm-xen/xen-public/event_channel.h>
 #include <asm-xen/hypervisor.h>
 #include <asm-xen/evtchn.h>
index 07317bdb3e60724383504eb9886266ba7b0f6484..98a6fd95d0ffea3931fda232b62b59a5c4f59df9 100644 (file)
@@ -26,6 +26,8 @@
 #include <asm/uaccess.h>
 #include <asm/tlb.h>
 #include <asm-xen/linux-public/privcmd.h>
+#include <asm-xen/linux-public/hypervisor.h>
+#include <asm-xen/xen-public/xen.h>
 #include <asm-xen/xen-public/dom0_ops.h>
 #include <asm-xen/xen_proc.h>
 
@@ -76,6 +78,18 @@ static int privcmd_ioctl(struct inode *inode, struct file *file,
                 "g" ((unsigned long)hypercall.arg[4])
                 : "r11","rcx","r8","r10","memory");
         }
+#elif defined (__ia64__)
+       __asm__ __volatile__ (
+           ";; mov r14=%2; mov r15=%3; mov r16=%4; mov r17=%5; mov r18=%6; mov
+r2=%1; break 0x1000;; mov %0=r8 ;;"
+           : "=r" (ret)
+           : "r" (hypercall.op),
+             "r" (hypercall.arg[0]),
+             "r" (hypercall.arg[1]),
+             "r" (hypercall.arg[2]),
+             "r" (hypercall.arg[3]),
+             "r" (hypercall.arg[4])
+           : "r14","r15","r16","r17","r18","r2","r8","memory");
 #endif
     }
     break;
index c5bdeb4e8c6e3e8f87921007eb82a101fa84670e..c46c9fe6bb91bf660c3614986a71435b98c75c58 100644 (file)
@@ -40,6 +40,7 @@
 #include "xenbus_comms.h"
 
 #include <asm/uaccess.h>
+#include <asm/hypervisor.h>
 #include <asm-xen/xenbus.h>
 #include <asm-xen/xen_proc.h>
 #include <asm-xen/linux-public/xenstored.h>